package com.jeecms.pay.model;

import com.jeecms.pay.api.AbstractPayClient;
import com.jeecms.pay.constant.DevelopStageEnum;
import com.jeecms.pay.constant.PayServiceEnum;

/**
 * PayService上下文
 * 
 * @author web
 * 
 */
public class PayContext {

	private PayUser payUser;

	private PayInputPara payInputPara;

	private Result result;

	private AbstractPayClient payClient;

	private PayInnerExceptionEntity payInnerExceptionEntity;

	private PayServiceEnum payServiceEnum;

	private DevelopStageEnum developStageEnum;

	public PayContext(PayBasePara payBasePara, Result result) {
		this.payUser = payBasePara.getPayUser();
		this.payClient = payBasePara.getPayClient();
		this.payServiceEnum = payBasePara.getPayServiceEnum();
		this.developStageEnum = payBasePara.getDevelopStageEnum();
		this.result = result;
	}

	public PayServiceEnum getPayServiceEnum() {
		return payServiceEnum;
	}

	public DevelopStageEnum getDevelopStageEnum() {
		return developStageEnum;
	}

	public PayInnerExceptionEntity getPayInnerExceptionEntity() {
		return payInnerExceptionEntity;
	}

	public void setPayInnerExceptionEntity(PayInnerExceptionEntity payInnerExceptionEntity) {
		this.payInnerExceptionEntity = payInnerExceptionEntity;
	}

	public AbstractPayClient getPayClient() {
		return payClient;
	}

	public PayUser getPayUser() {
		return payUser;
	}

	public PayInputPara getPayInputPara() {
		return payInputPara;
	}

	public void setPayInputPara(PayInputPara payInputPara) {
		this.payInputPara = payInputPara;
	}

	public Result getResult() {
		return result;
	}
}
